class Solution:
    def fizzBuzz(self, n: int) -> list:
        res = [str(i) for i in range(1, n+1)]
        for i in range(3, n+1, 3):
            res[i-1] = "Fizz"
        for i in range(5, n+1, 5):
            if res[i-1] == "Fizz":
                res[i-1] += "Buzz"
            else:
                res[i-1] = "Buzz"
        return res


a = Solution()
print(a.fizzBuzz(15))
print(a.fizzBuzz(1))
